package com.ckzp.jfinal.weixin.impl;

import com.ckzp.core.util.DateUtil;
import com.ckzp.jfinal.weixin.model.WxMember;
import com.ckzp.weixin.service.*;
import com.ckzp.weixin.service.response.TuwenResponse;

import java.util.Date;

/**
 * Created by 51594 on 2023/4/3.
 */
public class TextAction implements MessageAction {
    /**
     * @param request
     * @return
     */
    public ServiceResponse doAction(ServiceRequest request) {
        if (request != null) {
            String wx_openid = request.getFromUserName();
//            ServiceResponse response = ServiceResponse.init(request);
//            response.setContent(request.getContent());
//            return response;


            TuwenResponse response = TuwenResponse.init(request);
            response.addArticle("测试", "备注", "http://", "http://");
            return response;

        }
        return null;
    }
}
